<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
<meta charset="utf-8"/>
<title>专题课程<?php echo (TITLE); ?></title>
<link rel="stylesheet" type="text/css" href="/world/public/fontAwesome/css/font-awesome.min.css">

        <?php if($_SESSION['userType'] != 3): ?><meta http-equiv="refresh" content="0.1;url=<?php echo (DOMAIN_NAME); ?>Home/Account/Login"><?php endif; ?>
        <link href="<?php echo (ADMINCSS); ?>bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>font-awesome.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>se7en-font.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>isotope.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>jquery.fancybox.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>fullcalendar.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>wizard.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>select2.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>morris.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>datatables.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>datepicker.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>timepicker.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>colorpicker.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>bootstrap-switch.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>daterange-picker.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>typeahead.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>summernote.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>pygments.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>style.css" media="all" rel="stylesheet" type="text/css" />
		<link href="<?php echo (ADMINCSS); ?>tishiStyle.css" media="all" rel="stylesheet" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>color/green.css" media="all" rel="alternate stylesheet" title="green-theme" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>color/orange.css" media="all" rel="alternate stylesheet" title="orange-theme" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>color/magenta.css" media="all" rel="alternate stylesheet" title="magenta-theme" type="text/css" />
        <link href="<?php echo (ADMINCSS); ?>color/gray.css" media="all" rel="alternate stylesheet" title="gray-theme" type="text/css" />
        <script src="<?php echo (ADMINJS); ?>jquery.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery-ui.js" type="text/javascript">
        </script>
		<script src="<?php echo (ADMINJS); ?>tishiMsgbox.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>raphael.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>selectivizr-min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.mousewheel.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.vmap.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.vmap.sampledata.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.vmap.world.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.bootstrap.wizard.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>fullcalendar.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>gcal.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.dataTables.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>datatable-editable.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.easy-pie-chart.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>excanvas.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.isotope.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>isotope_extras.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>modernizr.custom.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.fancybox.pack.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>select2.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>styleswitcher.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>wysiwyg.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>summernote.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.inputmask.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.validate.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap-fileupload.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap-datepicker.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap-timepicker.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap-colorpicker.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>bootstrap-switch.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>typeahead.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>daterange-picker.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>date.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>morris.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>skycons.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>fitvids.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>jquery.sparkline.min.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>main.js" type="text/javascript">
        </script>
        <script src="<?php echo (ADMINJS); ?>respond.js" type="text/javascript">
        </script>
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    </head>
    <body>
        <script>
    $(function() {

	  	var AjaxLoading = document.getElementById("AjaxLoading");
        var overLay = document.getElementById("overLay");
        AjaxLoading.parentNode.removeChild(AjaxLoading);
        overLay.parentNode.removeChild(overLay);
      });
	
</script>
<div id="AjaxLoading" class="showbox">
	<div class="loadingWord" style="height: 1%">
		<img src="<?php echo (DOMAIN_NAME); ?>/Public/SHARE/waiting.gif">页面正在加载中...
	</div>
</div>
<div id="overLay" class="overlay"></div>
<style type="text/css">
* {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

a, img {
	border: 0;
}

.demo {
	margin: 100px auto 0 auto;
	width: 400px;
	text-align: center;
	font-size: 18px;
}

.demo .action {
	color: #3366cc;
	text-decoration: none;
	font-family: "΢���ź�", "����";
}

.overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 998;
	width: 100%;
	height: 100%;
	_padding: 0 20px 0 0;
	background: #f6f4f5;
	display: none;
}

.showbox {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 9999;
	opacity: 0;
	filter: alpha(opacity = 0);
	margin-left: -80px;
}

* html, * html body {
	background-image: url(about:blank);
	background-attachment: fixed;
}

* html .showbox, * html .overlay {
	position: absolute;
	top: expression(eval(document.documentElement.scrollTop));
}

#AjaxLoading {
	border: 1px solid #8CBEDA;
	color: #37a;
	font-size: 12px;
	font-weight: bold;
}

#AjaxLoading div.loadingWord {
	width: 180px;
	height: 50px;
	line-height: 50px;
	border: 2px solid #D6E7F2;
	background: #fff; 
}

#AjaxLoading img {
	margin: 10px 15px;
	float: left;
	display: inline;
}
</style>
<script type="text/javascript">
	$(".overlay").css({
		'display' : 'block',
		'opacity' : '0.8'
	});
	$(".showbox").stop(true).animate({
		'margin-top' : '300px',
		'opacity' : '1'
	}, 200);
	setTimeout(function() {
		$(".showbox").stop(true).animate({
			'margin-top' : '250px',
			'opacity' : '0'
		}, 1000);
		$(".overlay").css({
			'display' : 'none',
			'opacity' : '0'
		});
	}, 800000);
</script>

<div class="modal-shiftfix">
    <!-- Navigation -->
    <div class="navbar navbar-fixed-top scroll-hide">
        <div class="container-fluid top-bar">
            <div class="pull-right">
                <ul class="nav navbar-nav pull-right">
                    <li class="dropdown settings hidden-xs">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <span aria-hidden="true" class="se7en-gear">
                            </span>
                            <div class="sr-only">
                                Settings
                            </div>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a class="settings-link blue" href="javascript:chooseStyle('none', 30)">
                                    <span>
                                    </span>
                                    Blue
                                </a>
                            </li>
                            <li>
                                <a class="settings-link green" href="javascript:chooseStyle('green-theme', 30)">
                                    <span>
                                    </span>
                                    Green
                                </a>
                            </li>
                            <li>
                                <a class="settings-link orange" href="javascript:chooseStyle('orange-theme', 30)">
                                    <span>
                                    </span>
                                    Orange
                                </a>
                            </li>
                            <li>
                                <a class="settings-link magenta" href="javascript:chooseStyle('magenta-theme', 30)">
                                    <span>
                                    </span>
                                    Magenta
                                </a>
                            </li>
                            <li>
                                <a class="settings-link gray" href="javascript:chooseStyle('gray-theme', 30)">
                                    <span>
                                    </span>
                                    Gray
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown user hidden-xs">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <img width="34" height="34" src="<?php echo (RESOURCES); ?>UPLOADS/photo/<?php echo ($_SESSION['userPhoto']); ?>">
							
                           <?php echo ($_SESSION['userRealname']); ?>
                            <b class="caret">
                            </b>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="<?php echo (DOMAIN_NAME); ?>Admin/Editpwd/editpwd">
                                    <i class="icon-cog">
                                    </i>
                                    修改密码
                                </a>
                                <a href="<?php echo (DOMAIN_NAME); ?>Home/Account/Logout">
                                    <i class="icon-signout">
                                    </i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <button class="navbar-toggle">
                <span class="icon-bar">
                </span>
                <span class="icon-bar">
                </span>
                <span class="icon-bar">
                </span>
            </button>
            <a href="<?php echo (DOMAIN_NAME); ?>" target="_black" style="margin-left:0.75%">
                <img src="<?php echo (RESOURCES); ?>ADMIN/IMAGES/se7en-logo.png" />
            </a>
        </div>

<div class="container-fluid main-nav clearfix">
	<div class="nav-collapse">
		<ul class="nav">
			 <li><a id="Index"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Index/index"><span
					aria-hidden="true" class="se7en-home"></span>首页</a></li> 
			<li class="dropdown"><a id="Notice"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Notice/showList"> <span
					aria-hidden="true" class="icon-comment"></span>公告管理</b></a></li>
			<li><a id="Users"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Users/studentManage" ><span
					aria-hidden="true" class="se7en-feed"></span>用户管理</a></li>
			<!--	<li class="dropdown"><a id="Users" data-toggle="dropdown"
				href="#"> <span aria-hidden="true" class="se7en-feed"></span>用户管理<b
					class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a id="studentM"
						href="<?php echo (DOMAIN_NAME); ?>Admin/Users/studentManage">学生管理</a>
					</li>
					<li><a id="teacherM"
						href="<?php echo (DOMAIN_NAME); ?>Admin/Users/teacherManage">教师管理</a>
						
				</ul></li>-->
			<li><a id="Idea"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Idea/ideaManage"> <span
					aria-hidden="true" class="se7en-star"></span>创意管理
			</a></li>
			<li class="dropdown"><a id="Project"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Project/showList"> <span
					aria-hidden="true" class="se7en-pages"></span>项目管理</b></a></li>
						<li><a id="Special"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Special/showList"> <span
					aria-hidden="true" class="icon-book"></span>专题管理
			</a></li>
			<li><a id="Specialcourse"
				href="<?php echo (DOMAIN_NAME); ?>Admin/Specialcourse/showList"> <span
					aria-hidden="true" class="glyphicon glyphicon-list-alt"></span>课程管理
			</a></li>
			<li><a id="News"
				href="<?php echo (DOMAIN_NAME); ?>Admin/News/showList"> <span
					aria-hidden="true" class="se7en-forms"></span>新闻管理
			</a></li>


			<li><a id="Activity" href="<?php echo (DOMAIN_NAME); ?>Admin/Activity/showlist"><span
								 class="se7en-forms"></span>活动管理</a></li>



			<li class="dropdown"><a id="Comment" data-toggle="dropdown"
				href="#"> <span aria-hidden="true" class="se7en-tables"></span>评论管理<b
					class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a id="IdeaC"
						href="<?php echo (DOMAIN_NAME); ?>Admin/Comment/ideaManagement">创意评论管理</a>
					</li>

					<!--<li><a href="datatables-editable.html">
                    <div class="notifications label label-warning">
                      New
                    </div>
                    <p>
                      Editable DataTables
                    </p></a>
                    
                  </li>
				  -->
				</ul></li>
		</ul>
	</div>
</div>
</div>
<script>
	var CONTROLLER_ACTION = "<?php echo (CONTROLLER_NAME); ?>" + "/"
				+ "<?php echo (ACTION_NAME); ?>";
		switch (CONTROLLER_ACTION) {
		case "Index/index":               $("#Index").addClass("current"); break;
		case "Users/studentmanage":       $("#Users").addClass("current"); break;
		case "Users/studentadd":          $("#Users").addClass("current"); break;
		case "Users/studentimportexcel":  $("#Users").addClass("current"); break;
		case "Idea/ideamanage":           $("#Idea").addClass("current");  break;
		case "Idea/ideaadd":              $("#Idea").addClass("current");  break;
		case "News/showlist":             $("#News").addClass("current");  break;
		case "News/publishnews":             $("#News").addClass("current");  break;
		case "Project/showlist":          $("#Project").addClass("current"); break;
		case "Project/declarepro":        $("#Project").addClass("current"); break;
		case "Project/checkproject":      $("#Project").addClass("current"); break;
		case "Project/exportproject":     $("#Project").addClass("current"); break;
		case "Comment/ideamanagement":    $("#Comment").addClass("current");
			                              $("#IdeaC").addClass("current"); break;
		case "Notice/showlist":           $("#Notice").addClass("current"); break;
		case "Notice/addnotice":          $("#Notice").addClass("current"); break;
		}

</script>
<!-- End Navigation -->

<!-- 配置文件 -->
<script type="text/javascript" src="<?php echo (DOMAIN_NAME); ?>Public/Ueditor/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="<?php echo (DOMAIN_NAME); ?>Public/Ueditor/ueditor/ueditor.all.min.js"></script>
<script>
                            $(function(){
                                var ue = UE.getEditor('intro',{
                                    serverUrl :'<?php echo U('Admin/Index/ueditor');?>'
                                });
                            })                
</script>
 <div class="container-fluid main-content">
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <!-- <div class="widget"> -->
        <div class="widget-container fluid-height clearfix">
           		<div class="heading">
					<i class="icon-tags"></i>活动详情
				</div>
            <div class="widget-body">
                <div id="horizontal-form">
                        <!-- 111111111111111111111111111111111 -->
                        <div class="tabbable">
                            <ul id="myTab11" class="nav nav-tabs tabs-flat" style="padding:20px 80px 0px 80px;">
                                <li class="active">
                                    <a href="#home11" data-toggle="tab">
                                        活动详情
                                    </a>
                                </li>
                                <li class="">
                                    <a href="#profile11" data-toggle="tab">
                                        学生名单
                                    </a>
                                </li>
                                  <li class="">
                                    <a href="#profile12" data-toggle="tab">
                                        活动结果
                                    </a>
                                </li>
                            </ul>
                            <div class="tab-content tabs-flat">
                                <div class="tab-pane active" id="home11">

                               		<div class="col-md-12" >
                               			<div style="width: 80%;margin:10px auto">
									<p style="font-size: 24px; color: #007aff; text-align: center; font-family: 微软雅黑, 宋体;">
										<?php echo ($list["aname"]); ?></p>
										<blockquote style="height: 40px;margin: 30px 0 0 0; color: #468847;font-size:16px">
											<address >
										    <span class="meta-author" >活动时间：<?php echo ($list["startdate"]); ?></span>&nbsp;&nbsp;
											<span class="meta-author" >活动地点：<?php echo ($list["place"]); ?></span>&nbsp;&nbsp;
											<span class="meta-author" >票数/剩余票数：<?php echo ($list["totalticket"]); ?>/<?php echo ($list["restticket"]); ?></span>&nbsp;&nbsp;
											<span> 附件：<a href="http://localhost/world/<?php echo ($list["thumb"]); ?>"><?php echo ($list["attach"]); ?></a></span>
											</address>
										</blockquote>
									<div class="blog-content" >
									<div class="as" ">&nbsp;&nbsp;<span style=" text-align: center;"><?php echo ($list["content"]); ?></span></div>
								
											<!-- /.blog-content -->
												</div>
											<!-- /.post-blog -->
										</div>
									</div>
                                </div>

                                <div class="tab-pane" id="profile11">
                                <div class="row" style="height: 80%">
									<div class="col-lg-12" >
										<div style="width:90%;margin:0 auto;">
										<div class="widget-container fluid-height clearfix">
											<div class="widget-content padded clearfix">
												<table class="table table-bordered table-striped dataTable"
													id="datatable-editable">
													<thead>
														<th style="width: 8%; text-align: center">编号</th>
														<th style="width: 10%; text-align: center">学号</th>
														<th style="width: 10%; text-align: center;">姓名</th>
														<th style="width: 15%; text-align: center">活动分数</th>
														<th style="width: 10%; text-align: center;" class="sorting" role="columnheader" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1">出勤状态</th>
														<th style="width: 10%; text-align: center;">操作</th>
													</thead>
													<?php if(is_array($stu)): $i = 0; $__LIST__ = $stu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tbody>
														<?php $number = '1'; ?>
														<?php $project_not_through_id = '100000'; ?>
														
														<tr>
															<td style="text-align: center;"><?php echo ($vo["id"]); ?></td>
															<td style="text-align: center;"><?php echo ($vo["stunum"]); ?></td>
															<td style="text-align: center;"><?php echo ($vo["realname"]); ?></td>
															<td style="text-align: center;"><?php echo ($vo["score"]); ?></td>
															<td style="text-align: center;"><span class="label label-primary"><?php echo ($vo["state"]); ?></span>
															</td>
															<td>
															<a class="icon-remove" style="padding-left:20px ;" href="<?php echo U('activity/studel',array('id'=>$vo['id']));?>"></a>
															<a class=" icon-pencil" data-toggle="modal" data-target="#myModal" onclick="update(this)"></a>
															</td>
														</tr>
														</tbody><?php endforeach; endif; else: echo "" ;endif; ?>
													
												</table>
											</div>

							<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">  
							  <div class="modal-dialog">  
							    <div class="modal-content">  
							      <div class="modal-header">  
							        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>  
							        <h4 class="modal-title">修改信息</h4>  
							      </div> 
							      <div class="modal-body">  
							      <form method="post"  class="form-horizontal" >
										<input id="stu_id" type="text" name="id" hidden="">
							      		<div class="form-group">
											<label class="control-label col-md-2"> 项目分数 </label>
											<div class="col-md-8">
												<input class="form-control" id="score"  type="text" name="score" >
											</div>
										</div>	
											<div class="form-group">
													<label class="control-label col-md-2">出勤状态  
													</label> 
														<div class="col-md-8">
														  	<select name="state" id="state" class="form-control">
												      		
												      	</select>
														</div>
											</div> 
													<div class="form-group">
															
														<div class="modal-footer">  
												        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
												        <button type="submit" class="btn btn-primary" id="save_data">保存</button>  
												      	</div> 
														</div>
							      </form>
							  	</div> 

							      	<script type="text/javascript">
							      	function update(o){
							      		var tr= o.parentNode.parentNode;
							      		var tds=tr.cells;
							      		var id=tds[0].innerText;
							      		var state=tds[4].innerText;
							      		var score=tds[3].innerText;
							      		$("#stu_id").val(id);
							      		$("#score").val(score);
							      		if (state=="未参加") {
							      			$("#state").html(
							      			  '<option selected="selected" value="未参加">未参加</option><option value="已参加">已参加</option><option value="缺 席">缺 席</option>'
							      			  );
							      		}else if(state=="已参加"){
							      			$("#state").html(
							      			  '<option value="未参加">未参加</option> <option selected="selected"  value="已参加">已参加</option><option value="缺 席">缺 席</option>'
							      			  );
							      		}else{
							      			$("#state").html(
							      			  '<option value="未参加">未参加</option><option value="已参加">已参加</option><option selected="selected"  value="缺 席">缺 席</option>'
							      			  );
							      		}

							      	}
										 $("#save_data").click(function(){
										 	 $.ajax({
											  	type:"get",
					            				url:"/world/index.php/Admin/Specialcourse/stuedit/",
											    data: $("form").serialize(),
											    success: function(data) {
											    	if (data) {
											         alert("修改成功");
											     }else{
											     	alert("修改失败");
											     }
											    }
											});
										 });

										</script>
							      </div>  
							      
							    </div><!-- /.modal-content -->  
							  </div><!-- /.modal-dialog -->  
							</div>
							</div>
						</div>
						</div>
                     </div>           

                                      <div class="tab-pane" id="profile12">
                                        	<div class="col-md-12" >
                               			<div style="width: 60%;margin:30px auto">
									
										<div class="panel panel-success">
										  <div class="panel-heading" style="height:40px;font-size:20px;padding:10px;"><?php echo ($list["aname"]); ?>  <span style="float:right"><i class="icon-edit" ></i></span>
										  </div>

										  <div class="panel-body">

										 	 <div id="resultContent">
										  <?php if($list['result'] == null): ?><p style="font-size: 24px; color:red; margin:20px auto;  text-align: center; font-family: 微软雅黑, 宋体;">
										    抱歉暂无活动结果！
											</p>

											<?php else: ?>
											<?php echo ($list["result"]); endif; ?>
												</div>

										<div id="addresult" style="display:none">
											<form method="post" id="resuledesc" class="form-horizontal" enctype="multipart/form-data">
												<div class="form-group">
											<div class="col-md-12">
												<script id="intro" name="result" type="text/plain"></script>
													<script type="text/javascript">
						                                UE.getEditor('intro', {
						                                    theme: "default", //鐨偆
						                                    lang: "zh-cn", //璇█
						                                    initialFrameWidth: "100%", //鍒濆鍖栫紪杈戝櫒瀹藉害,榛樿800
						                                    initialFrameHeight: 500,
						                                    toolbars: [['source', 'undo', //鎾ら攢
						                                 'redo', //閲嶅仛
						                                 'bold', //鍔犵矖
						                                 'italic', //鏂滀綋
						                                 'underline', //涓嬪垝绾�
						                                 'selectall', //鍏ㄩ��
						                                 'preview', //棰勮
						                                 'horizontal', //鍒嗛殧绾�
						                                 'cleardoc', //娓呯┖鏂囨。
						                                 'fontfamily', //瀛椾綋
						                                 'fontsize', //瀛楀彿
						                                 'paragraph', //娈佃惤鏍煎紡
						                                 'simpleupload', //鍗曞浘涓婁紶
						                                 'insertimage', //澶氬浘涓婁紶
						                                 'link', //瓒呴摼鎺�
						                                 'emotion', //琛ㄦ儏
						                                 'justifyleft', //灞呭乏瀵归綈
						                                 'justifyright', //灞呭彸瀵归綈
						                                 'justifycenter', //灞呬腑瀵归綈
						                                 'justifyjustify', //涓ょ瀵归綈
						                                 'forecolor', //瀛椾綋棰滆壊
						                                 'backcolor', //鑳屾櫙鑹�
						                                 'insertorderedlist', //鏈夊簭鍒楄〃
						                                 'insertunorderedlist', //鏃犲簭鍒楄〃
						                                 'fullscreen', //鍏ㄥ睆
						                                 'imagenone', //榛樿
						                                 'imageleft', //宸︽诞鍔�
						                                 'imageright', //鍙虫诞鍔�
						                                 'imagecenter', //灞呬腑
						                                 'lineheight', //琛岄棿璺�
						                                 ]]
						                                });
						                            </script>
											</div>
										</div>
									<div class="form-group">
												<div class="modal-footer">  
												        <button type="button" class="btn btn-default" id="close">关闭</button>  
												        <button type="submit" class="btn btn-primary" id="save_result">保存</button>  
												      	</div> 
														</div>
							     		 </form>
							     		 			
											</div>



										  </div>

									
										

										</div>
									</div>
									   	<script type="text/javascript">
									   	var aid=<?php echo ($list['aid']); ?>;
							 			$(".icon-edit").click(function(){
							 				$("#resultContent").hide();
							 				$("#addresult").show();
							 			});
							 			$("#close").click(function(){
							 				$("#resultContent").show();
							 				$("#addresult").hide();
							 			});

							 			$("#save_result").click(function(){
							 				  $.ajax({
											  	type:"get",
					            				url:"/world/index.php/Admin/Specialcourse/saveresult/aid/"+aid,
					            				data: $("form:eq(1)").serialize(),
											    success: function(data) {
											    	// alert(data);
											    	if(data==1){alert("添加成功");}
											    	else{ alert("添加失败");}
											    	 }
											});
							 			});
							
										</script>


							   
							      </div>  
							      
							    </div><!-- /.modal-content -->  
							  </div><!-- /.modal-dialog -->  

                                </div>
                            </div>
                        </div>
                        <!-- 111111111111111111111111111111111 -->

                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>  
</body>

<meta charset=utf-8 />
<div class="container-fluid main-content">
	<div class="page-title"></div>
	<div class="row">
		<div class="col-lg-12" style="margin: 25px 0 0 0">
			<div class="widget-container fluid-height clearfix">
				<div class="col-md-12" style="text-align: center">
					<div class="dh" style="text-align: center; margin: 40px 0 15px 0">
						<small><a href="<?php echo (DOMAIN_NAME); ?>Home/Index/">首页</a>&nbsp;
						</small> <small><a
							href="<?php echo (DOMAIN_NAME); ?>Home/Idea/showList">创意列表</a>&nbsp;</small>
						<small><a
							href="<?php echo (DOMAIN_NAME); ?>Home/Project/showList">项目列表</a>&nbsp;
						</small> <small><a
							href="#">创新活动</a>&nbsp;</small>
						<small><a
							href="#">创新专题</a>&nbsp;
						</small> <small> <a
							href="<?php echo (DOMAIN_NAME); ?>Home/News/showList">新闻动态</a></small>
					</div>
					<p style="text-align: center; margin: 10px 0 30px 0">
						<small><a href="http://www.neusoft.edu.cn/" target="_bank">大连东软信息学院</a>
							- 计算机科学与技术系</small>
					</p>
				</div>
			</div>
		</div>
		<!-- End Pie Graph 1 -->
	</div>
</div>

</html>